﻿using DevExpress.XtraGrid;
using DoAnQuamLy.DataAccess;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DoAnQuamLy.Controller
{
    class DanhMucBanPhongController
    {
        DanhMucBanPhongData data = new DanhMucBanPhongData();
        public void SapXepDuLieuPhongLenDataGridView(GridControl dgv)
        {
            BindingSource bs = new BindingSource();
            bs.DataSource = data.layDanhSachPhong();
            dgv.DataSource = bs;
        }
        public void SapXepDuLieuBanLenDataGridView(GridControl dgv)
        {
            BindingSource bs = new BindingSource();
            bs.DataSource = data.layDanhSachBan();
            dgv.DataSource = bs;
        }
    }
}
